package cn.com.nou.common.utils;

import org.springframework.util.DigestUtils;

public class EncryptionUtils {

    private EncryptionUtils() {

    }

    public static String encryptPassword(String password) {
        final String salt = "n0uServ1ce";
        String md5Str = String.format("%s@%s", password, salt);
        return DigestUtils.md5DigestAsHex(md5Str.getBytes());
    }
    
    public static void main(String[] args) throws Exception {
    	System.err.println(EncryptionUtils.encryptPassword("12345678"));
    }
    
}
